﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

</head>
<body>
 

    <form id="form1" runat="server">
    <div>
    
    <table>
 <tr>
 <td >
 </td>
 <td >Nº Factura
 </td>
 <td>
 <asp:TextBox ID="txt_cod_factura" runat="server"></asp:TextBox>
        <asp:ImageButton ID="imgbt_buscar" runat="server" 
            ImageUrl="~/images/viewmag.png" onclick="imgbt_buscar_Click" />
 </td>
 </tr>
 </table>
    
        
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
            Font-Size="8pt" Height="400px" Width="572px">
            <LocalReport ReportPath="reportes\Reporte_Factura.rdlc">
                <DataSources>
                    <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" 
                        Name="DataSet_cabecera_DataTable1" />
                    <rsweb:ReportDataSource DataSourceId="ObjectDataSource2" 
                        Name="DataSet_detalle_factura_DataTable1" />
                </DataSources>
            </LocalReport>
        </rsweb:ReportViewer>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="GetData" 
            TypeName="DataSet_cabeceraTableAdapters.DataTable1TableAdapter" 
            OldValuesParameterFormatString="original_{0}">
            <SelectParameters>
                <asp:ControlParameter ControlID="txt_cod_factura" Name="cod_factura" 
                    PropertyName="Text" Type="Decimal" />
            </SelectParameters>
        </asp:ObjectDataSource>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
            TypeName="DataSet_detalle_facturaTableAdapters.DataTable1TableAdapter">
            <SelectParameters>
                <asp:ControlParameter ControlID="txt_cod_factura" Name="cod_factura" 
                    PropertyName="Text" Type="Decimal" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>
